﻿#include "maindialog.h"
#include "ui_maindialog.h"

MainDialog::MainDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::MainDialog)
{
    ui->setupUi(this);
    setWindowTitle(QStringLiteral("重症监护系统"));
}

MainDialog::~MainDialog()
{
    delete ui;
}


void MainDialog::on_closebttuon_clicked()
{
    close();
}

void MainDialog::on_heartButton_clicked()
{
    //切换到心电图页面
    ECGTestDialog*ecgDialog=new ECGTestDialog;
    ecgDialog->show();
}


void MainDialog::on_pressureButton_clicked()
{
    //切换到血压仪页面
    BloodPressureDialog*bloodpressure=new BloodPressureDialog;
    bloodpressure->show();
}

void MainDialog::on_bloodButton_clicked()
{
    //切换到血透仪页面
    HemodialysisDialog *hdsDialog=new HemodialysisDialog;
    hdsDialog->show();
}

void MainDialog::on_breathButton_clicked()
{
    //切换到呼吸机页面
    VentilatorDialog*ventilDialog=new VentilatorDialog;
    ventilDialog->show();
}

